<%@ taglib uri="/WEB-INF/struts-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/authz" prefix="auth"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>



<%@page import="jmc.util.Constants"%>

<%@page import="jmc.core.model.Usuario"%>

<%
	Usuario usuario = (Usuario) request.getSession().getAttribute("usuario");   	 
%>	

	<%
		if(usuario.getIdPerfil() == 1){   	 
	%>	
	
		<div class="pageHeader" style="padding:0px;background-image:url('images/cliente/logo1.png');background-repeat: no-repeat;		">
			<div class="pageHeader" style="margin:0px;background-repeat: no-repeat;">
				<div style="margin:16px 2% 0 0;color:black;margin-top:16px;float:right;text-align:right;width:75%;">
					Usuario: <%=usuario.getUsername() %> &nbsp; <%=usuario.getNumCliente() %> </a>
				</div>
			</div>
		</div>

	<%
		}else{   	 
	%>	

		<%
			if(usuario.getIdPerfil() == 2){   	 
		%>	
		
			<div class="pageHeader" style="padding:0px;background-image:url('images/cliente/logoTF.jpg');background-repeat: no-repeat;		">
							<div class="pageHeader" style="margin:0px;background-repeat: no-repeat;">
		<div class="subTitulo1">
	DEALER VEHICLE DISTRIBUTION PANEL    
</div>
				
				<div class="pageHeader" style="margin:0px;background-repeat: no-repeat;">
					<div style="margin:16px 2% 0 0;color:black;margin-top:16px;float:right;text-align:right;width:75%;">
						Usuario: <%=usuario.getUsername() %> &nbsp; <%=usuario.getNumCliente() %> </a>
					</div>
				</div>
			</div>
	
		<%
			}else{   	 
		%>	

			<div class="pageHeader" style="padding:0px;background-image:url('images/cliente/logoPdi<%=usuario.getNumCliente()%>.jpg');background-repeat: no-repeat;		">
				<div class="pageHeader" style="margin:0px;background-repeat: no-repeat;">
					<div style="margin:16px 2% 0 0;color:black;margin-top:16px;float:right;text-align:right;width:75%;">
						Usuario: <%=usuario.getUsername() %> &nbsp; <%=usuario.getNumCliente() %> </a>
					</div>
				</div>
			</div>

	<%
		}
		}
	%>	

	<div class="topMenu" id="MenuPos">
	
	<%
		if(usuario.getIdPerfil() == 1){   	 
	%>	
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/menus/operadorWs.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/menus/menu_com.js"></script>	

	<%
		}else{   	 
	%>	
		<%
			if(usuario.getIdPerfil() == 2){   	 
		%>	
			<script type="text/javascript" src="<%=request.getContextPath()%>/js/menus/operadorVdp.js"></script>
			<script type="text/javascript" src="<%=request.getContextPath()%>/js/menus/menu_com.js"></script>	
	
		<%
			}else{   	 
		%>	
	
			<script type="text/javascript" src="<%=request.getContextPath()%>/js/menus/operador.js"></script>
			<script type="text/javascript" src="<%=request.getContextPath()%>/js/menus/menu_com.js"></script>
		<%
			}
		}
		%>	

	
			
				
			
	</div>
